package com.inctech.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inctech.dao.IPassportDAO;
import com.inctech.service.IPassportService;

@Service("passportService")
public class PassportServiceImpl implements IPassportService {
	@Autowired
	IPassportDAO dao;
	
	@Override
	public boolean securityCheck(Map<String, String> param) {	
		int count = dao.securityCheck(param);
		System.out.println("Selected row count:" + count);
		if(count > 0)
			return true;
		else
			return false;
	}
	
	@Override
	public String getGoupIdByUserId(String userId) {
		return dao.getGoupIdByUserId(userId);
	}
	
	@Override
	public List<String> getAllUserIds() {
		return dao.getAllUserIds();
	}
}
